<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="roleAssignment.title"/></title>
    <content tag="heading"><fmt:message key="roleAssignment.heading"/></content>
</head>


<table class="table">
    <tr>
        <td>
            &nbsp;
        </td>
        <c:forEach var="rolename" items="${rolenames}" varStatus="status">
            <td>
                <c:out value="${rolename}" escapeXml="false" />
            </td>
        </c:forEach>    
    </tr>
    <c:forEach var="user" items="${userList}" varStatus="status">
        <tr>
            <td>
                <c:out value="${user.username}" />
            </td>
            <c:forEach var="date" items="${user.roleAssignment}">
                <td>
                    <c:if test="${date != null}">
                        <fmt:formatDate value="${date}" pattern="MM/dd/yyyy" />
                    </c:if>
                </td>
            </c:forEach>
        </tr>

    </c:forEach>
    
</table>
